package com.win.service.impl;

import com.win.pojo.Product;
import com.win.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProductById(Long id) {
        Product product = new Product();
        product.setId(id);
        product.setPrice(BigDecimal.valueOf(16.2));
        product.setNum(2);
        product.setProductName("苹果-"+id);
        return product;
    }
}
